package com.cn.yz.common.page;

public class Page {
	
	private int pageNo;
	
	private int pageIndex;
	
	private int pageSize;
	
	public Page(int pageIndex, int pageSize){
		this.pageIndex = pageIndex;
		this.pageNo = (pageIndex-1)*pageSize;
		this.pageSize = pageSize;
	}

	public int getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

}
